<style scoped>
</style>
<template>
  <van-field v-bind="$attrs"
             :readonly="is_info"
             :placeholder="placeholder"
             :type="~['password','number','color'].indexOf(config) ? config : 'text'"
             :name="is_info?'':name"
             :model-value="modelValue"
             @update:model-value="$emit('update:modelValue', $event)"
             @change="$emit('change', $event)" >
  </van-field>
</template>

<script>
export default {
  name: "text_one",
  props: {
    name: String,
    modelValue: [String,Number],
    config: [String,Object],
    placeholder: String,
    is_info: Boolean,
  },
  emits: ['update:modelValue','change'],
  data(){
    return {}
  },
  methods: {

  },
  watch: {
  },
  computed: {},
  mounted() {
  }
}
</script>